package com.zhuiYun.project.api.order.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @ClassName OrdersRetreat
 * @Description TODO
 * @Author yuanb
 * @Date 2023/4/14 10:51
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Table(name = "orders_retreat")
public class OrdersRetreat {
    @Id
    private Integer id;
    /**
     * 总订单id外键
     */
    private Integer ordersId;
    /**
     * 创建时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss" )//DateTimeFormat 是入参格式化；
    private Date createTime;

    /**
     * 售后状态id
     */
    private Integer ordersStatusId;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 售后信息表外键
     */
    private Integer ordersAfterSalesId;

    /**
     * 售后记录
     */
    private Integer ordersRetreatTakeNotes;
    /**
     * 删除标识
     */
    private Integer delFlag;
}
